package properties;

import java.util.Properties;

import javax.annotation.PostConstruct;


import common.AppConst;
import common.SpringKit;


/**
 * 属性配置文件读取
 * @author kinfeng
 */
public class PropertiesReader {
	private String appConstConfigLocation;
	private String clientMsgConfigLocation;
	
	@PostConstruct
	public void read(){
		//应用常量配置
		Properties appConstProperties = SpringKit.loadClasspathProperties(appConstConfigLocation);
		AppConst.initFromProperties(appConstProperties);
		//客户端消息配置
		Properties clientMsgProperties = SpringKit.loadClasspathProperties(clientMsgConfigLocation);
		ClientMsg.initFromProperties(clientMsgProperties);
		
	}

	
	public String getAppConstConfigLocation() {
		return appConstConfigLocation;
	}
	public void setAppConstConfigLocation(String appConstConfigLocation) {
		this.appConstConfigLocation = appConstConfigLocation;
	}


	public String getClientMsgConfigLocation() {
		return clientMsgConfigLocation;
	}


	public void setClientMsgConfigLocation(String clientMsgConfigLocation) {
		this.clientMsgConfigLocation = clientMsgConfigLocation;
	}


}
